﻿package com.guavestudios.fnfo.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author maze | ppmcity.com
	 */
	public class FnfoPluginEvent extends Event 
	{
		
		protected var _body:*;
		protected var _pluginId:String;
		
		public function FnfoPluginEvent(type:String, pluginId:String,body:*=null,bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			this._body = body;
			this._pluginId = pluginId;
		} 
		
		public override function clone():Event 
		{ 
			return new FnfoPluginEvent(type, _pluginId,_body,bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("FnfoPluginEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get pluginId():String { return _pluginId; }
		
		public function set pluginId(value:String):void 
		{
			_pluginId = value;
		}
		
		public function get body():* { return _body; }
		public function set body(value:*):void 
		{
			_body = value;
		}
		
	}
	
}